<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Step 4 :: SEO Toaster</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="pragma" content="no-cache" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/checkform.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.qtip.js"></script>
<script type="text/javascript">
$(document).ready(function(){ 
    $.getScript('js/init.js');
    $("#smtp").click(function(){
        if ($(this).attr("checked")) {
            $("#smtp_host").attr("disabled", "");
            $("#smtp_login").attr("disabled", "");
            $("#smtp_password").attr("disabled", "");
        } else {
            $("#smtp_host").attr("disabled", "disabled");
            $("#smtp_login").attr("disabled", "disabled");
            $("#smtp_password").attr("disabled", "disabled");
        }
    });
});
</script>
</head>
<body>
<div  id="seotoaster" class="installer_step4">
<div id="admineditwhat">Good, now Plug the toaster - Step four out of five</div>
<div id="content">
<div style="width: 97%;"><h2>Configuration:</h2></div>
<form action="index.php" method="post" onsubmit="return checkForm();">
    <div><label>Web site URL: *</label></div>
    <div align="right"><input type="text" name="site_url" class="inputtext" value="<?php echo isset($site_url) ? $site_url : 'http://'; ?>" title="Enter your website url address"></div>
    <div><label>Admin email: *</label></div>
    <div align="right"><input type="text" name="email" class="inputtext" value="<?php echo isset($email) ? $email : ''; ?>" title="Enter administrator email"></div>
    <div><label>Small image width:</label></div>
    <div align="right"><input type="text" name="small" class="inputtext" value="<?php echo isset($small) && $small > 0 ? $small : ''; ?>" title="The system automatically creates 'small' thumbnails when you upload images"></div>
    <div><label>Medium image width:</label></div>
    <div align="right"><input type="text" name="medium" class="inputtext" value="<?php echo isset($medium) && $medium > 0 ? $medium : ''; ?>" title="The system also creates 'medium' thumbnails when you upload images"></div>
    <div><label>Large image width:</label></div>
    <div align="right"><input type="text" name="large" class="inputtext" value="<?php echo isset($large) && $large > 0 ? $large : ''; ?>" title="The system also creates 'large' thumbnails when you upload images"></div>
    <div class="separate"></div>
    <div><label>Use SMTP when sending emails:</label></div>
    <div align="right"><input type="checkbox" name="smtp" id="smtp" <?php echo isset($smtp) && $smtp === true ? 'checked' : ''; ?>class="inputtext" title="Use SMTP"></div>
    <div><label>SMTP host:</label></div>
    <div align="right"><input type="text" disabled="disabled" name="smtp_host" id="smtp_host" class="inputtext" value="<?php echo isset($smtp_host) ? $smtp_host : ''; ?>" title="Enter your host for SMTP"></div>
    <div><label>SMTP login:</label></div>
    <div align="right"><input type="text" disabled="disabled" name="smtp_login" id="smtp_login" class="inputtext" value="<?php echo isset($smtp_login) ? $smtp_login : ''; ?>"  title="Enter your login for SMTP"></div>
    <div><label>SMTP password:</label></div>
    <div align="right"><input type="password" disabled="disabled" name="smtp_password" id="smtp_password" class="inputtext" value="<?php echo isset($smtp_password) ? $smtp_password : ''; ?>"  title="Enter your password for SMTP"></div>
    <div class="separate"></div>
    <div style="width:97%;"><label>Sign In:</label></div>
    <div><label>Login: *</label></div>
    <div align="right"><input type="text" name="login" class="inputtext" value="<?php echo isset($login) ? $login : ''; ?>" title="Enter your login for sign in"></div>
    <div><label>Password: *</label></div>
    <div align="right"><input type="password" name="password" class="inputtext" value="<?php echo isset($password) ? $password : ''; ?>" title="Create a new password. 5 character min."></div>
    <?php if (!$navigation): ?><div align="right" style="width:98%;border:0px;margin-top:10px;"><input type="hidden" name="step" value="4"><input type="submit" class="formsubmit" name="submit" value="Done"></div><?php endif; ?>
</form>
</div>
<?php if ($error): ?><div class="errors" onclick="this.style.display='none';"><?php echo $message; ?></div><?php endif; ?>
<?php if ($navigation): ?>
<div class="success" onclick="this.style.display='none';">Configuration was generated.</div>
<div class="navigation">
    <div class="left">
        <form action="index.php" method="post">
        <input type="hidden" name="step" value="3">
        <input type="submit" class="formsubmit" value="< Back">
    </form>
    </div>
    <div class="right">
    <form action="index.php" method="post">
        <input type="hidden" name="step" value="5">
        <input type="submit" class="formsubmit" value="Next >">
    </form>
    </div>
</div>
<?php endif; ?>
</div>
</body>
</html>
